import ajax from './ajax.js'

let myAjaxFunc,
	GetMenuRightByKey,
	GetUserInfo,
	GetAttachInfo

myAjaxFunc = (url, data, config = {}) => ajax.post(url, data, config);

GetMenuRightByKey = (data, config = {}) => ajax.post(Config.PlatformAPI + publicJs.Config.IndexUrl
	.GetMenuRight, params, config);

GetUserInfo = (config = {}) => ajax.post(Config.PlatformAPI + publicJs.Config.IndexUrl.GetInfo, {}, config);

GetAttachInfo = (data, config = {}) => ajax.post(Config.PlatformAPI + publicJs.Config.Attach
	.GetAttachInfo, {}, config)

export default {
	myAjaxFunc,
	GetMenuRightByKey,
	GetUserInfo,
	GetAttachInfo
}
